import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:myflutterproject/views/myredtag.dart';

class MyImageButton1 extends StatelessWidget {
  final Widget image;
  final String title;

  MyImageButton1(this.image, this.title);

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Stack(
        children: <Widget>[
          Center(
            child: Column(
              children: <Widget>[
                SizedBox(
                  height: 12,
                ),
                image,
                SizedBox(
                  height: 5,
                ),
                Text(
                  title,
                  style: TextStyle(fontSize: 12, color: Colors.black),
                )
              ],
            ),
          ),
        ],
      ),
    );
  }
}
